<template>
	<div>
		<ul>
			<li v-for="item in arr" :key="item">
                    {{item}}
			</li>
		</ul>
		<button @click="revBtn">走一走</button>
	
	</div>
</template>

<script>
	export default {
		data() {
			return {
				arr: ['帅哥','美女','程序员']
			}
		},
		methods: {
			revBtn() {
				// 1. 数组翻转可以让v-for更新
                    this.arr.reverse()
			},
	
		}
	}
</script>

<style>

</style>
